package 数据结构.章节09._161_队列;

import org.junit.Assert;
import org.junit.Test;

/**
 * @author 挚爱之夕
 * @date 2021/10/13 - 10 - 13 - 15:43
 * @Description: 数据结构.章节09._161_队列
 * @Version: 1.0
 */
public class MyQueueTest {
    MyQueue<Object> queue = new MyQueue<>();
    @Test
    public void enqueue() {
        queue.enqueue("0");
        queue.enqueue("1");
        queue.enqueue("2");
        queue.enqueue("3");
        Assert.assertEquals(4,queue.getSize());
        Assert.assertEquals("0",queue.peek());
        queue.dequeue();
        Assert.assertEquals("1",queue.peek());
        queue.dequeue();
        queue.dequeue();
        queue.dequeue();
        Assert.assertTrue(queue.isEmpty());
    }

    @Test
    public void dequeue() {
    }

    @Test
    public void peek() {
    }

    @Test
    public void isEmpty() {
    }

    @Test
    public void getSize() {
    }
}